class LocationBean {
  LocationBean({
    this.altitude,
    this.speed,
    this.bearing,
    this.citycode,
    this.adcode,
    this.country,
    this.province,
    this.city,
    this.district,
    this.road,
    this.street,
    this.number,
    this.poiname,
    this.errorCode,
    this.errorInfo,
    this.locationType,
    this.locationDetail,
    this.aoiname,
    this.address,
    this.poiid,
    this.floor,
    this.description,
    this.time,
    this.provider,
    this.lon,
    this.lat,
    this.accuracy,
    this.isOffset,
    this.isFixLastLocation,
    this.coordType,
  });

  LocationBean.fromJson(dynamic json) {
    altitude = json['altitude'];
    speed = json['speed'];
    bearing = json['bearing'];
    citycode = json['citycode'];
    adcode = json['adcode'];
    country = json['country'];
    province = json['province'];
    city = json['city'];
    district = json['district'];
    road = json['road'];
    street = json['street'];
    number = json['number'];
    poiname = json['poiname'];
    errorCode = json['errorCode'];
    errorInfo = json['errorInfo'];
    locationType = json['locationType'];
    locationDetail = json['locationDetail'];
    aoiname = json['aoiname'];
    address = json['address'];
    poiid = json['poiid'];
    floor = json['floor'];
    description = json['description'];
    time = json['time'];
    provider = json['provider'];
    lon = json['lon'];
    lat = json['lat'];
    accuracy = json['accuracy'];
    isOffset = json['isOffset'];
    isFixLastLocation = json['isFixLastLocation'];
    coordType = json['coordType'];
  }
  num? altitude;
  num? speed;
  num? bearing;
  String? citycode;
  String? adcode;
  String? country;
  String? province;
  String? city;
  String? district;
  String? road;
  String? street;
  String? number;
  String? poiname;
  num? errorCode;
  String? errorInfo;
  num? locationType;
  String? locationDetail;
  String? aoiname;
  String? address;
  String? poiid;
  String? floor;
  String? description;
  num? time;
  String? provider;
  num? lon;
  num? lat;
  num? accuracy;
  bool? isOffset;
  bool? isFixLastLocation;
  String? coordType;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['altitude'] = altitude;
    map['speed'] = speed;
    map['bearing'] = bearing;
    map['citycode'] = citycode;
    map['adcode'] = adcode;
    map['country'] = country;
    map['province'] = province;
    map['city'] = city;
    map['district'] = district;
    map['road'] = road;
    map['street'] = street;
    map['number'] = number;
    map['poiname'] = poiname;
    map['errorCode'] = errorCode;
    map['errorInfo'] = errorInfo;
    map['locationType'] = locationType;
    map['locationDetail'] = locationDetail;
    map['aoiname'] = aoiname;
    map['address'] = address;
    map['poiid'] = poiid;
    map['floor'] = floor;
    map['description'] = description;
    map['time'] = time;
    map['provider'] = provider;
    map['lon'] = lon;
    map['lat'] = lat;
    map['accuracy'] = accuracy;
    map['isOffset'] = isOffset;
    map['isFixLastLocation'] = isFixLastLocation;
    map['coordType'] = coordType;
    return map;
  }
}
